//
// Created by 黄河 on 2024/1/16.
//

#ifndef HDFS_OPERATE_HDFS_H
#define HDFS_OPERATE_HDFS_H

#include <hdfs.h>

class operatehdfs
{
public:
    operatehdfs();
    void operatehdfs_conn(char const *ip, int port);
    void operatehdfs_open(char *filename);
    int  operatehdfs_write(unsigned char *buff, int bufflen);
    void operatehdfs_close();
    void operatehdfs_rename(const char *oldPath, const char *newPath);
private:
    hdfsFS fs;
    hdfsFile writeFile;
};
#endif //HDFS_OPERATE_HDFS_H
